﻿using SD.ContentSystem.Domain.Entities;
using SD.Infrastructure.RepositoryBase;
using System.Collections.Generic;

namespace SD.ContentSystem.Domain.IRepositories.Interfaces
{
    /// <summary>
    /// 栏目仓储接口
    /// </summary>
    public interface IChannelRepository : IAggRootRepository<Channel>
    {
        #region # 根据上级栏目获取栏目列表 —— IEnumerable<Channel> Find(string parentChannelNo...
        /// <summary>
        /// 根据上级栏目获取栏目列表
        /// </summary>
        /// <param name="parentChannelNo">上级栏目编号</param>
        /// <param name="isNavigator">是否是导航</param>
        /// <returns>栏目列表</returns>
        IEnumerable<Channel> Find(string parentChannelNo, bool? isNavigator);
        #endregion

        #region # 获取栏目列表 —— IEnumerable<Channel> Find(bool? isNavigator)
        /// <summary>
        /// 获取栏目列表
        /// </summary>
        /// <param name="isNavigator">是否是导航</param>
        /// <returns>栏目列表</returns>
        IEnumerable<Channel> Find(bool? isNavigator);
        #endregion
    }
}
